package com.ksd.modules.download.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.download.entity.AdminDownloads;
import com.ksd.modules.download.po.AdminDownloadsSavePO;
import com.ksd.modules.download.po.AdminDownloadsSearchPO;
import com.ksd.modules.download.vo.AdminDownloadsVo;

public interface IAdminDownloadsService extends IBaseService<AdminDownloads> {


    /**
     * 查询列表
      * @param adminDownloadsSearchPO
     * @return
     */
    Page<AdminDownloadsVo> findAdminDownloadss(AdminDownloadsSearchPO adminDownloadsSearchPO);

    /**
     * 回收站
     * @param adminDownloadsSearchPO
     * @return
     */
    Page<AdminDownloadsVo> findAdminDownloadssRecyle(AdminDownloadsSearchPO adminDownloadsSearchPO);

    /**
     * 保存和更新
     * @param adminDownloadsSavePO
     * @return
     */
    AdminDownloadsVo saveUpdateAdminDownloads(AdminDownloadsSavePO adminDownloadsSavePO);

    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    AdminDownloadsVo getAdminDownloadsById(Long id);

    /**
     * 单个逻辑删除
     * @param id
     * @return
     */
    Boolean deleteAdminDownloadsById(Long id);

    /**
     * 单个恢复
     * @param id
     * @return
     */
    Boolean recoverByIdAdminDownloads(Long id);

    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminDownloadsById(Long id);

    /**
     * 批量逻辑删除
     * @param batchIdsPO
     * @return
     */
    Boolean bacthDeletesAdminDownloads(BatchIdsPO batchIdsPO);

    /**
     * 批量恢复
     * @param batchIdsPO
     * @return
     */
    Boolean batchRecoversAdminDownloads(BatchIdsPO batchIdsPO);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesAdminDownloads(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchDowns(BatchIdsPO batchIdsPO);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchUps(BatchIdsPO batchIdsPO);
}
